package com.junzhiit.nengji.cms.web.controller;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestMethod;
import org.springframework.web.bind.annotation.RestController;

import com.bainaeco.framework.util.AssertUtil;
import com.junzhiit.nengji.cms.service.GoodsLabelItemsService;
import com.junzhiit.nengji.cms.web.vo.ResultVO;

@RestController
@RequestMapping("goods/label/items")
public class GoodsLabelItemsController {
	
	@Autowired
	private GoodsLabelItemsService goodsLabelItemsService;
	
	@RequestMapping(value="/all",method=RequestMethod.GET)
	public ResultVO getAll(String goodsId) {
		AssertUtil.notBlank(goodsId, "goodsId is required");
		return goodsLabelItemsService.getAll(goodsId);
	}
}
